﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server" style="font-family: 'Microsoft YaHei'">
        <div style="text-align: center">
            <h1>学生餐卡管理系统</h1>
            <hr />
            <table align="center" Width="360px">
                <tr>
                    <td><b>卡号：</b></td>
                    <td style="text-align:left">
                        <asp:TextBox ID="CardID_TextBox" runat="server" Columns="16" MaxLength="7" ></asp:TextBox>
                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="CardID_TextBox" Display="Dynamic" ErrorMessage="卡号不能为空!" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="CardID_TextBox" Display="Dynamic" ErrorMessage="非法账号!" ForeColor="Red" ValidationExpression="^\d{7}$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td><strong>原密码：</strong></td>
                    <td style="text-align:left">
                        <asp:TextBox ID="OldPassword_TextBox" runat="server" Columns="16" MaxLength="16" TextMode="Password"></asp:TextBox>
                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="OldPassword_TextBox" Display="Dynamic" ErrorMessage="密码不能为空!" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><b>密码：</b></td>
                    <td style="text-align:left">
                        <asp:TextBox ID="Password_TextBox" runat="server" Columns="16" MaxLength="16" TextMode="Password"></asp:TextBox>
                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password_TextBox" Display="Dynamic" ErrorMessage="密码不能为空!" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><strong>确认密码：</strong></td>
                    <td style="text-align:left">
                        <asp:TextBox ID="Confirm_TextBox" runat="server" Columns="16" MaxLength="16" TextMode="Password"></asp:TextBox>
                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Confirm_TextBox" Display="Dynamic" ErrorMessage="密码不能为空!" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="Password_TextBox" ControlToValidate="Confirm_TextBox" Display="Dynamic" ErrorMessage="两次输入密码不一致!" ForeColor="Red"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align:center">
                        <asp:Button ID="Button1" runat="server" Text="确认修改" OnClick="Button1_Click" />
&nbsp;
                        <input id="Reset_Button" type="reset" value="重置" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
